package edu.pitt.cs.cs2510.project3.model.replication;
/*
 * File: CopyReplication.java
 * Authors: Jesse Szwedko, Callen Shaw, Heather Friedberg
 * CS2510 Project 3
 */
public class CopyReplication extends Replication {
	public String originServer;
	public String destinationServer;

	public CopyReplication(String filename, int time, String originServer,
			String destinationServer) {
		super(filename, time);
		this.originServer = originServer;
		this.destinationServer = destinationServer;
	}
	
	public String toString(boolean outputMode)
	{
		if (!outputMode)
		{
			return this.toString();
		}
		
		return "COPY, " + this.filename + ", " + this.originServer + ", " + this.destinationServer + ", " + this.time;
	}

	@Override
	public String toString() {
		return "Copy [destinationServer=" + destinationServer
		+ ", originServer=" + originServer + "]";
	}
}